/*
 * reference: https://blog.csdn.net/xiezhongyuan07/article/details/109245920
 */
#ifndef Page1Class_H
#define Page1Class_H

#include <QObject>

class Page1Class : public QObject
{
    Q_OBJECT;
public:
    explicit Page1Class(QObject * parent = nullptr);

public:
    // use Q_INVOKABLE  to declare funciton,
    // then the qml can use this funcion.
    Q_INVOKABLE void setValue(int value);
    Q_INVOKABLE int getValue();

signals:

private:
    int m_value; //int value
};

#endif // Page1Class_H
